﻿using System;

namespace YArchitech.HCLoad.XmlData
{
	public class HeatingResult
	{
		public double HeatingLoad
		{
			get
			{
				return this.m_dDJHeatload;
			}
			set
			{
				this.m_dDJHeatload = value;
			}
		}

		public double HeatingLoadButTransfer
		{
			get
			{
				return this.m_dDJHeatLoadButTransfer;
			}
			set
			{
				this.m_dDJHeatLoadButTransfer = value;
			}
		}

		public HeatingResult Increase(HeatingResult cnload)
		{
			this.m_dDJHeatload += cnload.m_dDJHeatload;
			this.m_dDJHeatLoadButTransfer += cnload.m_dDJHeatLoadButTransfer;
			return this;
		}

		public HeatingResult Decrease(HeatingResult cnload)
		{
			this.m_dDJHeatload -= cnload.m_dDJHeatload;
			this.m_dDJHeatLoadButTransfer -= cnload.m_dDJHeatLoadButTransfer;
			return this;
		}

		public static HeatingResult operator +(HeatingResult cnload1, HeatingResult cnload2)
		{
			new HeatingResult();
			cnload1.Increase(cnload2);
			return cnload1;
		}

		public static HeatingResult operator -(HeatingResult cnload1, HeatingResult cnload2)
		{
			new HeatingResult();
			cnload1.Decrease(cnload2);
			return cnload1;
		}

		private double m_dDJHeatload;

		private double m_dDJHeatLoadButTransfer;
	}
}
